#********************************************************************
# (C) DaVinci Engineering GmbH 2022
#*******************************************************************/
if(CMAKE_CROSSCOMPILING)
    set (CMAKE_C_FLAGS "Options For Cross Compiling")
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
string(APPEND CMAKE_C_FLAGS " -DUSE_MCU")
add_library (Kernel STATIC src/event.c 
            src/init.c 
            src/task.c
            src/resource.c
            src/alarm.c
            src/sched_table.c
            src/counter.c
            #src/isr.c
            src/os_arctest.c
            #src/application.c
            src/asm_offset.c
            )

target_include_directories(Kernel PUBLIC ${PROJECT_SOURCE_DIR}/arch/x64/kernel/include )
target_include_directories(Kernel PUBLIC ${PROJECT_SOURCE_DIR}/include )
target_include_directories(Kernel PUBLIC ${PROJECT_SOURCE_DIR}/boards/linuxOs/MCAL/Os/include )
target_include_directories(Kernel PUBLIC ${PROJECT_SOURCE_DIR}/system/kernel/include)

endif()